const fs = require('fs')
const dotenv = require('dotenv')
dotenv.config()

const PRIVATE_KEY = fs.readFileSync('src/app/keys/rsa_private_key.pem')
const PUBLIC_KEY = fs.readFileSync('src/app/keys/rsa_public_key.pem')

module.exports = {
  APP_PORT,
  MYSQL_HOST,
  MYSQL_DATABASE,
  MYSQL_USER,
  MYSQL_PASSWORD,
  APP_HOST,
  APP_ID
} = process.env

module.exports.PRIVATE_KEY = PRIVATE_KEY
module.exports.PUBLIC_KEY = PUBLIC_KEY